
#include "SipUserMessage.hpp"

namespace wtsip{


//////////////////// TranTimerMessage /////////////////////////////

TranTimerMessage::TranTimerMessage(const resip::Data& tid, bool isClient): 
m_tid(tid), m_isClient(isClient){}


TranTimerMessage::~TranTimerMessage(){}


bool TranTimerMessage::isClient(){
    return m_isClient;
}


Message* TranTimerMessage::clone() const
{
    return new TranTimerMessage(m_tid, m_isClient);
}


EncodeStream& TranTimerMessage::encode(EncodeStream& strm) const
{
    return strm;
}


EncodeStream& TranTimerMessage::encodeBrief(EncodeStream& str) const
{
    return str;
}


const resip::Data& TranTimerMessage::getTid(){
    return m_tid;
}

//////////////////// DlgTimerMessage  /////////////////////////////

DlgTimerMessage::DlgTimerMessage(const resip::Data& callid, DlgTimerType type, int seq): 
m_callid(callid), m_type(type), m_seq(seq){}


DlgTimerMessage::~DlgTimerMessage(){}


Message* DlgTimerMessage::clone() const{
	return new DlgTimerMessage(m_callid, m_type);
}


EncodeStream& DlgTimerMessage::encode(EncodeStream& strm) const{
	return strm;
}


EncodeStream& DlgTimerMessage::encodeBrief(EncodeStream& str) const{
	return str;
}


const resip::Data& DlgTimerMessage::getDialogID(){
	return m_callid;
}


/////////////////////////  DlgDestroyMessage  ////////////////////

DlgDestroyMessage::DlgDestroyMessage(const resip::Data& callid): m_callid(callid){}


DlgDestroyMessage::~DlgDestroyMessage(){}


resip::Message* DlgDestroyMessage::clone() const{
    return new DlgDestroyMessage(m_callid);
}


EncodeStream& DlgDestroyMessage::encode(EncodeStream& strm) const{
    return strm;
}


EncodeStream& DlgDestroyMessage::encodeBrief(EncodeStream& str) const{
    return str;
}


const resip::Data& DlgDestroyMessage::getDialogID(){
    return m_callid;
}



}//nmspace


